package org.reborn.math

case class Plane3F(val point:VectorF,val normal:VectorF){
  require(point.length >= 3)
  require(normal.length >= 3)
  
  /**
   * Get D from the plane equation point dot normal + d = 0
   */
  lazy val d = - (point dot normal)
  
  def dist(pt:VectorF):Float = {
	(normal dot (pt - this.point))
  }
}
